package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Activerecord implements Serializable {
    /**
     * 活动记录编号
     */
    private Integer arid;

    /**
     * 活动类型
     */
    private String atid;

    /**
     * 开始时间
     */
    private Date begintime;

    /**
     * 计划结束时间
     */
    private Date endtime;

    /**
     * 活动详情描述
     */
    private String ardesc;

    /**
     * 活动状态
     */
    private Integer arstate;

    /**
     * 活动提前结束的条件值
     */
    private Integer arsum;

    /**
     * 实际结束时间
     */
    private Date resultendtime;

    /**
     * 实际结束时间说明
     */
    private String resultdesc;

    private static final long serialVersionUID = 1L;

    public Integer getArid() {
        return arid;
    }

    public void setArid(Integer arid) {
        this.arid = arid;
    }

    public String getAtid() {
        return atid;
    }

    public void setAtid(String atid) {
        this.atid = atid;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getArdesc() {
        return ardesc;
    }

    public void setArdesc(String ardesc) {
        this.ardesc = ardesc;
    }

    public Integer getArstate() {
        return arstate;
    }

    public void setArstate(Integer arstate) {
        this.arstate = arstate;
    }

    public Integer getArsum() {
        return arsum;
    }

    public void setArsum(Integer arsum) {
        this.arsum = arsum;
    }

    public Date getResultendtime() {
        return resultendtime;
    }

    public void setResultendtime(Date resultendtime) {
        this.resultendtime = resultendtime;
    }

    public String getResultdesc() {
        return resultdesc;
    }

    public void setResultdesc(String resultdesc) {
        this.resultdesc = resultdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activerecord other = (Activerecord) that;
        return (this.getArid() == null ? other.getArid() == null : this.getArid().equals(other.getArid()))
            && (this.getAtid() == null ? other.getAtid() == null : this.getAtid().equals(other.getAtid()))
            && (this.getBegintime() == null ? other.getBegintime() == null : this.getBegintime().equals(other.getBegintime()))
            && (this.getEndtime() == null ? other.getEndtime() == null : this.getEndtime().equals(other.getEndtime()))
            && (this.getArdesc() == null ? other.getArdesc() == null : this.getArdesc().equals(other.getArdesc()))
            && (this.getArstate() == null ? other.getArstate() == null : this.getArstate().equals(other.getArstate()))
            && (this.getArsum() == null ? other.getArsum() == null : this.getArsum().equals(other.getArsum()))
            && (this.getResultendtime() == null ? other.getResultendtime() == null : this.getResultendtime().equals(other.getResultendtime()))
            && (this.getResultdesc() == null ? other.getResultdesc() == null : this.getResultdesc().equals(other.getResultdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getArid() == null) ? 0 : getArid().hashCode());
        result = prime * result + ((getAtid() == null) ? 0 : getAtid().hashCode());
        result = prime * result + ((getBegintime() == null) ? 0 : getBegintime().hashCode());
        result = prime * result + ((getEndtime() == null) ? 0 : getEndtime().hashCode());
        result = prime * result + ((getArdesc() == null) ? 0 : getArdesc().hashCode());
        result = prime * result + ((getArstate() == null) ? 0 : getArstate().hashCode());
        result = prime * result + ((getArsum() == null) ? 0 : getArsum().hashCode());
        result = prime * result + ((getResultendtime() == null) ? 0 : getResultendtime().hashCode());
        result = prime * result + ((getResultdesc() == null) ? 0 : getResultdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", arid=").append(arid);
        sb.append(", atid=").append(atid);
        sb.append(", begintime=").append(begintime);
        sb.append(", endtime=").append(endtime);
        sb.append(", ardesc=").append(ardesc);
        sb.append(", arstate=").append(arstate);
        sb.append(", arsum=").append(arsum);
        sb.append(", resultendtime=").append(resultendtime);
        sb.append(", resultdesc=").append(resultdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}